<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>注册帐户</title>
	<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="__STATIC__/css/base.css">
	<link rel="stylesheet" href="__STATIC__/icon/icon.css">
	<script type="text/javascript" src="__STATIC__/js/core/jquery.min.js"></script>
	<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
</head>
<body>

{qb:hy name="wap_reg_001" where="index_style/default/index/reg/wap/reg" val="datas" type="labelmodel"}
	{$datas}
{/qb:hy}

<script type="text/javascript">
//做风格的时候,这里的代码可以直接复制即可
var qq_login_url = "{:purl('login/qq/index')}?fromurl={$fromurl}";
var wx_login_url  = "{:purl('weixin/login/index')}?fromurl={$fromurl}";
var ck_qqlogin_url = "{:purl('login/qq/app',[],'index')}?";
var ck_wxlogin_url = "{:iurl('index/wxapp.login/web_login_check')}?";
var jump_from_url = "{$fromurl}";
var app_login_type = "{$webdb.wxopen_appkey?2:1}";
var app_login_url = "{:iurl('index/wxapp.login/wxopen')}";
var xcx_gh_id = "{$webdb['P__h5app']['wxapp_ghid']}";
</script>
<script type="text/javascript" src="__STATIC__/js/login.js?s"></script>


<script type="text/javascript">

function weixin_mp(){
	layer.open({
	  type: 1,
	  title: '关注公众号',
	  shadeClose: true,
	  shade: false,
	  maxmin: true, //开启最大化最小化按钮
	  area: ['350px', '450px'],
	  content: "<center><img style='width:280px' src='{:tempdir(config('webdb.mp_code_img')?:config('webdb.weixin_code_img'))}'><br>请长按识别上方二维码关注公众号<br>然后回复：验证码</center>",
	  end: function(){
		  	//get_code_num('weixin');
		}
	});
}

function get_code_num(type){
	var to='';
	var obj = $(".mui-input-group input[name='"+type+"']");
	if(type=='mobphone'){
		to = obj.val();
		if(to==''){
			obj.focus();
			layer.msg('请先输入手机号码');
			return false;
		}
	}else if(type=='email'){
		to = obj.val();
		if(to==''){
			obj.focus();
			layer.msg('请先输入邮箱');
			return false;
		}
	}
	layer.msg('请稍候,系统正在发送验证码!',{time:3000});
	$.get("{:urls('reg/getnum')}?type="+type+'&to='+ to +'&'+Math.random(),function(res){
		layer.close();
		if(res.code==0){
			layer.alert('验证码已成功发出,请耐心等候,注意查收!');
			objs.removeClass('error');
		}else{
			layer.alert(res.msg);
			objs.addClass('error');
		}			
	});
}

function check_num(objs,type){
	var vals=objs.val();
	$.get("{:urls('reg/check_num')}?num="+vals+"&type="+type+'&'+Math.random(),function(res){
		if(res.code==0){
			objs.removeClass('error');
		}else{
			layer.msg(res.msg);
			objs.addClass('error');
		}			
	});
}


function checkinput(objs,type){
	var vals=objs.val();
	$.get("{:urls('reg/check')}?"+type+"="+vals+'&'+Math.random(),function(d){
		if(d=='ok'){
			objs.removeClass('error');
		}else{
			layer.msg(d);
			//objs.focus();
			objs.addClass('error');
		}			
	});
}
function checkpassword(objs){
	var repassword=objs.val();
	var password=$('input[name="password"]').val();
	if(repassword!=password){
		layer.alert('重复输入密码不一致！');
		objs.addClass('error');
	}else{
		objs.removeClass('error');
	}
}
</script>
</div>
</body>
</html>